using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("hrm_ps_command_types")]
    public class PsCommandType
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Column("cmd_type_seq"), Display(Name = "CmdTypeId", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public int CmdTypeId { get; set; }

		[DataMember, Column("cmd_type_code"), Display(Name = "CmdTypeCode", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public string CmdTypeCode { get; set; }

		[DataMember, Column("cmd_type_name"), Display(Name = "CmdTypeName", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public string CmdTypeName { get; set; }

		[DataMember, Column("cmd_type_name_short"), Display(Name = "CmdTypeNameShort", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public string CmdTypeNameShort { get; set; }

		[ForeignKey("CmdGroup")]
		[DataMember, Column("cmd_group_seq"), Display(Name = "CmdGroupId", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public Nullable<int> CmdGroupId { get; set; }

		[DataMember, Column("rpt_format"), Display(Name = "RptFormat", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public string RptFormat { get; set; }

		[DataMember, Column("remarks"), Display(Name = "Remarks", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public string Remarks { get; set; }

		[DataMember, Column("record_status"), Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Column("created_by"), Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Column("created_when"), Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Column("updated_by"), Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Column("updated_when"), Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		[DataMember, Column("rpt_header"), Display(Name = "RptHeader", ResourceType = typeof(Resources.PsCommandTypesResource))]
        public string RptHeader { get; set; }


		[DataMember]
        public virtual PsCommandGroup HrmPsCommandGroups { get; set; }

		public virtual PsCommandGroup CmdGroup { get; set; }

    }
}